/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.constants;

/**
 * LegendShop 常量.
 */
public class Constants {
	
	public static final String LAST_USERNAME_KEY = "LAST_LOGINING_USERNAME";
	
	/** The Constant RETURN_URL. */
	public static final String RETURN_URL = "returnUrl";
	
	public static final String USER_STATUS_ENABLE = "1"; //用户正常状态
	
	public static final String USER_STATUS_DISABLE = "0"; //用户无效状态，不可使用
	
	//菜单
	public static final String MENU_LIST = "MENU_LIST";
	
	/** 排序指示器，作为全局参数不可以修改. */
	public static final String ORDER_INDICATOR = "orderIndicator";
	
	/** The Constant SPRING_SECURITY_CONTEXT. */
	public static final String SPRING_SECURITY_CONTEXT = "SPRING_SECURITY_CONTEXT";
	
	/**
	 * 登录重复次数
	 */
	public static final String TRY_LOGIN_COUNT = "TRY_LOGIN_COUNT";

	/** 真的表达式. */
	public static final String TRUE_INDICATOR = "Y";

	/** 假的表达式. */
	public static final String FALSE_INDICATOR = "N";

	/** 上线状态. */
	public static final Integer ONLINE = 1;

	/** 下线状态. */
	public static final Integer OFFLINE = 0;

	/** . 停止使用，普通用户不能改为 ONLINE 或者 OFFLINE */
	public static final Integer STOPUSE = -1;

	/** 国际化文件放置的文件目录. */
	public static final String LOCALE_FILE = "i18n/ApplicationResources";

	/** 国际化文件放置的文件目录. */
	public static final String LOCALE_KEY = "LOCALE_KEY";

	public static final String LOCALE_RESOLVER = "localeResolver";

	public static final String LOCALE_MESSAGE_PREFIX = "message:";

	/** 错误的验证码代码. */
	public static final String ERROR_CODE = "errorCode";

	/** 错误的安全验证码. */
	public static final String ERROR_SECURITY_CODE = "errorSecurityCode";

	/** The Constant errorCode. */
	public static final String ERR_MSG = "errMsg";
	/**
	 * 操作失败
	 */
	public static final String FAIL = "fail";

	/**
	 * 操作受限，例如发短信过于频繁
	 */
	public static final String LIMIT = "limit";

	public static final String MAIL_EXISTS = "MAIL_EXISTS";

	/**
	 * 操作成功
	 */
	public static final String SUCCESS = "OK";

	/**
	 * 需要登录
	 */
	public static final String USER_LOGIN_REQUIRED = "LR";

	public static final String PHOTO_FORMAT_ERR = "PHOTO_FORMAT_ERR";
	
}
